package com.xxxx.yebserver.exception;

import lombok.Getter;

public enum ExceptionEnum {

    GLOBE_EXCEPTION(10000,"未知异常"),
    FIELD_VALID_EXCEPTION(1500,"数据校验错误！"),
    USERNAME_OR_PASSWORD_EXCEPTION(1501,"用户名或密码错误！"),
    ACCOUNT_STATUS_EXCEPTION(1502,"账户已禁用，请联系管理员");

    @Getter
    private Integer code;
    @Getter
    private String msg;

    private ExceptionEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

}
